package com.feng.cloud.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feng.cloud.common.request.QueryRequest;
import com.feng.cloud.system.entity.Role;
import com.feng.cloud.system.entity.SystemUser;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName RoleMapper
 * @Description TODO
 * @Author Better Feng
 * @Date 2019/12/26 11:23
 * @Version 1.0
 **/
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 分页查询
     * @param page IPage
     * @param request QueryRequest
     * @return  IPage<Role>
     */
    IPage<Role> selectListByPage(Page<SystemUser> page,@Param("map") QueryRequest request);
}
